from tortoise import fields
from tortoise.models import Model

class CommonModel(Model):
    created_at = fields.DatetimeField(null=True,auto_now_add=True)
    updated_at = fields.DatetimeField(null=True,auto_now=True)
    is_deleted = fields.BooleanField(default=False)
    #抽象基类 不被继承
    class Meta:
        abstract = True
